package Homeworks.HOMEWORK0223;

import java.util.Scanner;

public class Homework0223_2 {
    public static void main(String[] args){
        //输入
        System.out.println("输入数字");
        Scanner sc=new Scanner(System.in);
        int number=sc.nextInt();
        //反转
        int n=number;
        int num=0;
        while (number>0){
            num=num*10+number%10;
            number/=10;

        }
        if(n==num){
            System.out.println("回文数");
        }else
        {
            System.out.println("不是");
        }

    }
}
